import java.util.*;

public class DinChanXiTong {
    public static void main(String[] args) {

        Scanner input = new Scanner(System.in);

        while (true) {
            System.out.println("**************************");
            System.out.println("1.我要订餐");
            System.out.println("2.查看餐袋");
            System.out.println("3.签收订单");
            System.out.println("4.删除订单");
            System.out.println("5.我要点赞");
            System.out.println("6.退出系统");
            System.out.println("**************************");
            System.out.println("请输入数字选择");
            int no = Integer.parseInt(input.nextLine());
            switch (no) {
                case 1:
                    System.out.println("****我要定餐****");
                    System.out.println("请输入定餐姓名");
                    String name = input.nextLine();
                    System.out.println("序号\t\t菜名\t\t价格\t\t");
                    System.out.println("1\t\t番茄炒鸡蛋\t\t12元\t\t");
                    System.out.println("2\t\t鱼香肉丝\t\t14\t\t");
                    System.out.println("3\t\t回锅肉\t\t18\t\t");
                    System.out.println("4\t\t农家一锅香\t\t20\t\t");
                    int[] a = {1, 2, 3, 4};
                    String[] b = {"番茄鸡蛋", "鱼香肉丝", "回锅肉", "农家一锅香"};
                    int[] c = {12, 14, 18, 20};
                    System.out.println("请输入菜品的编号");
                    int pin = Integer.parseInt(input.nextLine());
                    System.out.println("请输入份数");
                    int fen = Integer.parseInt(input.nextLine());
                    System.out.println("请输入订餐地点");
                    int diDian = Integer.parseInt(input.nextLine());
                    System.out.println("请输入订餐时间");
                    int shijian = Integer.parseInt(input.nextLine());
                    System.out.println("恭喜您订餐成功");
                    double sum = 0;//总价格
                    sum = (fen * c[pin - 1]);//订餐单品总价格
                    System.out.println("您订餐的产品是:" + fen + "份" + b[pin - 1]);
                    System.out.println("餐品总价格是" + sum + "元");
                    System.out.println("订餐地点是：" + diDian);
                    System.out.println("订餐时间是：" + shijian + "点");
                    System.out.println("输入0返回，输入1继续订餐");
            }
        }
    }
}